package ua.maxicash.dao;

import ua.maxicash.vo.JobType;
import ua.maxicash.vo.Work;
import ua.maxicash.vo.Worker;
import ua.maxicash.vo.WorkersFreeTime;

import java.sql.Time;
import java.util.List;

public interface WorkDao {

    public void addWork(Work work);
    public void updateWork(Work work);
    public List<Work> listWork();
   // @Cacheable(cacheName="listJobType")
	public List<JobType> listJobType();
    //@Cacheable(cacheName="selectJobType")
	public JobType selectJobType(Long id);
	public void addWorkersFreeTime(WorkersFreeTime wft);
    public List<Worker> listWorkersWithStartTime(Time startTime);
    //@Cacheable(cacheName="getWorkById")
	public Work getWorkById(Long id);
}
